 

package com.zdkj.subway.stm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.stm.dto.in.SwStTvmCheckDetailDTO;
import com.zdkj.subway.stm.entity.SwStTvmCheckDetail;

import java.sql.SQLException;
import java.util.List;

/**
 * TVM详细日清点表（主表）
 *
 * @author songtuo
 * @date 2020-03-05 21:04:12
 */
public interface SwStTvmCheckDetailService extends IService<SwStTvmCheckDetail> {
    //1:单表保存Tvm日结数据
    boolean saveOrUpdateStTvmCheckDetail(SwStTvmCheckDetailDTO swStTvmCheckDetailDTO,Integer id) throws SQLException;

    Integer updateSwStOneCashBox(SwStTvmCheckDetailDTO swStTvmCheckDetailDTO);

    boolean saveSwStTvmCheckDetail(SwStTvmCheckDetailDTO swStTvmCheckDetailDTO);

    boolean updateSwStTvmCheckDetail(SwStTvmCheckDetailDTO swStTvmCheckDetailDTO);

    boolean deleteCascadeById(Integer id);

    SwStTvmCheckDetailDTO queryDetailsByid(Integer id,String flag);

    boolean updateSwStTvmCheckDetailApprovalStatus(List<Integer> ids, String status);
    /**
     * 批量确认
     * @param ids
     * @return
     */
    boolean confirmBatch(List<Integer> ids);

    boolean saveCheckDetailDataEntryLog(SwStTvmCheckDetailDTO swStTvmCheckDetailDTO, Integer id);
}
